package com.ccp.dev.qbdms.model;

import java.math.BigDecimal;
import com.ccp.dev.core.basic.model.BaseModel;
import com.ccp.dev.qbdms.annotation.IsAttachment;
import com.ccp.dev.qbdms.consts.ZhiLiangConst;
import com.ccp.dev.qbdms.expimp.annotation.FlowSubject;
import com.ccp.dev.qbdms.expimp.annotation.Record;

import java.util.Date;

/**
 * 质量综合分析报告 表 w_qbd_quality_analysis_report
 *
 * @author mi
 * @date 2020-06-22 14:16:42
 */
@FlowSubject(subjectName = "质量综合分析报告")
public class WQbdQualityAnalysisReport extends BaseBusinessModel<WQbdQualityAnalysisReport> {

    private static final long serialVersionUID = 1L;
    public static final String QARXF_FAIL_CACHE="QarxfFailCache";

    /**
     * 主键ID
     */
    private String id;
    /**
     * 报告名称
     */

    @Record("报告名称")
    private String  name;
    /**
     * 年度
    */
    @Record("年度")
    private String  year;
    /**
     * 附件
    */
    @Record("附件")
    @IsAttachment
    private String  attachmentUrl;
    /**
     * 备注
    */
    @Record("备注")
    private String  remark;
    /**
     * 状态
    */
    private String  status;
    /**
     * 下发数据的原ID
     */
    private String  xfdataId;

    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getYear() {
        return this.year;
    }
    public void setYear(String year) {
        this.year = year;
    }
    public String getAttachmentUrl() {
        return this.attachmentUrl;
    }
    public void setAttachmentUrl(String attachmentUrl) {
        this.attachmentUrl = attachmentUrl;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getStatus() {
        return this.status;
    }
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "WQbdQualityAnalysisReport{" +
                "id='" + id + "'," +
                "name='" + name + "'," +
                "year='" + year + "'," +
                "attachmentUrl='" + attachmentUrl + "'," +
                "remark='" + remark + "'," +
                "status='" + status + "'," +
                '}';
    }

    /**
     * 集团下发状态文字
     */
    private String staStr;

    /**
     * 密级文字
     */
    private String secretStr;
    /**
     * 类别 集团级/全院
     */
    private String type;

    public String getStaStr() {
        return ZhiLiangConst.HAIR_DOWN_MAP.get(this.status);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getSecretStr() {
        return secretStr;
    }

    public void setSecretStr(String secretStr) {
        this.secretStr = secretStr;
    }


    public String getXfdataId() {
        return xfdataId;
    }

    public void setXfdataId(String xfdataId) {
        this.xfdataId = xfdataId;
    }
}
